#include<stdio.h>
int max(int a,int b,int c,int d);
int main()
{
    printf("input four munber\n");   
    int  a,b,c,d,n;
    scanf("%d%d%d%d",&a,&b,&c,&d);
    n=max(a,b,c,d);
    printf("ֵthe max is %d\n",n);
    n=(a>b)?a:b;
    n=(c>d)?c:d;
    n=(c>n)?c:n;
    printf("ֵthe max is %d\n",n);
    return 0;
}
int max(int a,int b,int c,int d)
{
    int max;
    if (a>b)
    {
        max=a;
    }    
    else
    {
        max=b;
    }
    if (max>c)
    {
        max=c;
    }
    else
    {
        max=max;
    }
    if (max>d)
    {
        return max;
    }
    else
    {
        return d;
    }
}


